﻿#region Imports
using System;
using System.Windows.Forms;
using CommonUtilities.Enums;
using CommonUtilities.Util;
using DirectoryAnalyzer.Main;
#endregion

namespace DirectoryAnalyzer.Events
{
    public static class FormResizeEvent
    {
        #region Events
        public static void _FormResize(object sender, EventArgs e, Form currentForm)
        {
            if (currentForm.WindowState == FormWindowState.Normal)
            { currentForm.Size = currentForm.MinimumSize; currentForm.StartPosition = FormStartPosition.CenterScreen; }
            Notifications.PlaySound(eNotificationSound.WindowState, Program.IsMute);
        }
        #endregion
    }
}
